package com.dc.designPattern._0_设计原则._4_dip.step2;

/**
 * Description: 依赖倒转_调用者
 * @author: gdc
 * @date: 2021/7/23
 * @version 1.0
 */
class Person {
    /**
     * 这里是对接口的依赖，完成了依赖倒置
     * @param receiver          接受接口
     */
    public void receive(IReceiver receiver) {
        System.out.println(receiver.getInfo());
    }
}